/**
 * 状态管理-用户相关
 */

import {
    SAVE_USER_ME,
} from '../mutation_types';

export default {
    state: {
        userMe: {
            isSuperAdmin: true
        },
    },

    mutations: {
        [SAVE_USER_ME](state, data) {
            state.userMe = data;
        },
    },

    actions: {
        SAVE_USER_ME({ commit }, data) {
            commit(SAVE_USER_ME, data);
        },
    }
};